#ifndef CLOCKWIDGET_H
#define CLOCKWIDGET_H

#include <QWidget>
#include "jwidget/jdialog.h"
#include <QLCDNumber>
QT_BEGIN_NAMESPACE
class QSpinBox;
QT_END_NAMESPACE

class TimeSettings : public JDialog
{
    Q_OBJECT

public:
    TimeSettings(QWidget *parent = 0);
    ~TimeSettings();

private slots:
    void setDate();
    void refreshWidget();
    void editDate();

private:
    QLabel  *m_pYearSpinBox;
    QLabel  *m_pMoonSpinbox;
    QLabel  *m_pDaySpinbox;
    QLabel  *m_pHourSpinBox;
    QLabel  *m_pMinSpinBox;
    QLabel  *m_pSencondSpinBox;
    QLabel *pHourLab;
    int refreshWidgetFlag;
};

class TimeSettings2 : public QDialog
{
    Q_OBJECT

public:
    TimeSettings2(QWidget *parent = 0);
    ~TimeSettings2();

private slots:
    void setYearIn();
    void setYearDe();
    void setMonthIn();
    void setMonthDe();
    void setDayIn();
    void setDayDe();
    void setHouIn();
    void setHouDe();
    void setMinIn();
    void setMinDe();
    void setSecondIn();
    void setSecondDe();
    void setTime();
private:
    QLCDNumber *pHouLab2 ;
    QLCDNumber *pMinLab2 ;
    QLCDNumber *pSencondLab2;
   // QLabel *pYearLab2 = new QLabel(tr(" "));
    QLCDNumber *pMonthlab2 ;
    QLCDNumber *pDaylab2 ;
    QLCDNumber *pYearLab2 ;
};


#endif // WIDGET_H
